# -*- coding:utf-8 -*-

__author__ = 'chendaqing'

import unittest
import random


class TestRandom(unittest.TestCase):

	def setUp(self):
		self.seq = range(10)

	def test_shuffle(self):
		#random.shuffle(x[,random])    用于将一个列表中的元素打乱
		random.shuffle(self.seq)
		print u'test_shuffle: ', self.seq


if __name__ == "__main__":
	unittest.main()


def test_rand_01(self):
	"""
		 随机数范围：range[0.0,1.0)
		 """
	print random.random()